<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/4/10
 * Time: 14:06
 */
namespace App\Enum;

class MediaLikeConfigEnum
{
    /**
     * @desc 定义点赞配置对象
     */
    const MEDIA_LIKE_TYPE_ALL = 1;  // 所有视频点赞
    const MEDIA_LIKE_TYPE_USER = 2; // 指定用户
    const MEDIA_LIKE_TYPE_INDIVIDUAL = 3;   // 某些视频

    /**
     * @desc 定义点赞周期
     */
    const MEDIA_LIKE_CYCLE_DAY = 1;     // 天
    const MEDIA_LIKE_CYCLE_HOUR = 2;    // 时
    const MEDIA_LIKE_CYCLE_MINUTE = 3;  // 分

    /**
     * @desc 定义点赞配置状态
     */
    const MEDIA_LIKE_STATUS_DISABLED    = 1; // 停用
    const MEDIA_LIKE_STATUS_ENABLE    = 2; // 启用
    const MEDIA_LIKE_STATUS_END    = 3; // 结束

    /**
     * @var array 点赞对象集合
     */
    public static $media_list_type_arr = [
        self::MEDIA_LIKE_TYPE_ALL,
        self::MEDIA_LIKE_TYPE_USER,
        self::MEDIA_LIKE_TYPE_INDIVIDUAL,
    ];

    /**
     * @var array 点赞周期集合
     */
    public static $media_like_cycle_arr = [
        self::MEDIA_LIKE_CYCLE_DAY,
        self::MEDIA_LIKE_CYCLE_HOUR,
        self::MEDIA_LIKE_CYCLE_MINUTE,
    ];

    /**
     * @var array 点赞状态集合
     */
    public static $media_like_status_arr = [
        self::MEDIA_LIKE_STATUS_DISABLED,
        self::MEDIA_LIKE_STATUS_ENABLE,
        self::MEDIA_LIKE_STATUS_END,
    ];

}